package thread;

public class Demo22 {
    public static void main(String[] args) throws InterruptedException {
        Object obj = new Object();
        System.out.println("wait 之前");
        synchronized (obj) {
            //阻塞等待,一定是先释放锁,再等待
            obj.wait();
        }
        System.out.println("wait 之后");
    }
}
